<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>onmouseenter</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .bord{
            border: 1px dashed #ee2602;
            width: 90%;
            margin: 20px auto;
        }
        .title{
            font-size: 20px;
            font-weight: bold;
            margin: 20px;
        }
        .introduce{
            font-size: 16px;
            margin: 0 0 20px 50px;
        }
        .red{
            color: red;
        }
    </style>
    <script>
        function bigImg(x) {
            x.style.height = "64px";
            x.style.width = "64px";
        }
    </script>
</head>
<body>
<div class="bord">
    <div class="title">onmouseenter</div>
    <div class="introduce">
        onmouseenter 鼠标指针移动到图像时执行发生。
    </div>
</div>
<div class="bord">
    <div class="title">演示效果</div>
    <p>鼠标移动到图片</p>
    <br/>
    <img onmouseenter="bigImg(this)"border="0" src="../img/ax.jpg" alt="Smiley" width="32" height="32">
    <p>
        bigImg() 函数在用户将鼠标指针移动到该图像时触发。</p>
</div>
<div class="bord">
    <div class="title">代码</div>
    <div class="introduce">
        <pre>
            &lt;script&gt;
        function bigImg(x) {
            x.style.height = "64px";
            x.style.width = "64px";
        }
            &lt;/script&gt;
    &lt;img onmouseenter="bigImg(this)"border="0" src="../img/ax.jpg" alt="Smiley" width="32" height="32"&gt;
            bigImg() 函数在用户将鼠标指针移动到该图像时触发。
        </pre>
    </div>
</div>
</body>
</html>